package com.angel.architecture.daos.impl;

import java.util.List;

import com.angel.architecture.daos.ActionDAO;
import com.angel.architecture.persistence.beans.Action;
import com.angel.architecture.persistence.ids.ObjectId;
import com.angel.dao.generic.impl.GenericSpringHibernateDAO;


public class ActionSpringHibernateDAO extends GenericSpringHibernateDAO<Action, ObjectId> implements ActionDAO {

    public ActionSpringHibernateDAO(){
        super(Action.class, ObjectId.class);
    }

	public List<Action> findAllSorted(){
		//TODO Sorted.
        return (List<Action>) this.findAll();
	}

	public List<Action> findAllByDescription(String description){
        return (List<Action>) this.findAll("description", description);
	}

}
